package com.ssm.demo.controller;

import com.ssm.demo.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ZhuYouBin
 * @version 1.0.0
 * @Date: 2022/9/11 19:52
 * @Description
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @Autowired
    private ITestService iTestService;

    @RequestMapping("/index")
    public String test() {
        String test = iTestService.test();
        System.out.println(test);
        return "index";
    }

    @RequestMapping("/mybatis")
    public String mybatis() {
        iTestService.testMybatis();
        return "index";
    }

}
